package com.ruoyi.student.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.student.mapper.StudentsTutorsMapper;
import com.ruoyi.student.domain.StudentsTutors;
import com.ruoyi.student.service.IStudentsTutorsService;

/**
 * 导师信息Service业务层处理
 *
 *  
 * @date 2024-04-16
 */
@Service
public class StudentsTutorsServiceImpl implements IStudentsTutorsService
{
    @Autowired
    private StudentsTutorsMapper studentsTutorsMapper;

    /**
     * 查询导师信息
     *
     * @param tutorId 导师信息主键
     * @return 导师信息
     */
    @Override
    public StudentsTutors selectStudentsTutorsByTutorId(Long tutorId)
    {
        return studentsTutorsMapper.selectStudentsTutorsByTutorId(tutorId);
    }

    /**
     * 查询导师信息列表
     *
     * @param studentsTutors 导师信息
     * @return 导师信息
     */
    @Override
    public List<StudentsTutors> selectStudentsTutorsList(StudentsTutors studentsTutors)
    {
        return studentsTutorsMapper.selectStudentsTutorsList(studentsTutors);
    }

    /**
     * 新增导师信息
     *
     * @param studentsTutors 导师信息
     * @return 结果
     */
    @Override
    public int insertStudentsTutors(StudentsTutors studentsTutors)
    {
        return studentsTutorsMapper.insertStudentsTutors(studentsTutors);
    }

    /**
     * 修改导师信息
     *
     * @param studentsTutors 导师信息
     * @return 结果
     */
    @Override
    public int updateStudentsTutors(StudentsTutors studentsTutors)
    {
        return studentsTutorsMapper.updateStudentsTutors(studentsTutors);
    }

    /**
     * 批量删除导师信息
     *
     * @param tutorIds 需要删除的导师信息主键
     * @return 结果
     */
    @Override
    public int deleteStudentsTutorsByTutorIds(Long[] tutorIds)
    {
        return studentsTutorsMapper.deleteStudentsTutorsByTutorIds(tutorIds);
    }

    /**
     * 删除导师信息信息
     *
     * @param tutorId 导师信息主键
     * @return 结果
     */
    @Override
    public int deleteStudentsTutorsByTutorId(Long tutorId)
    {
        return studentsTutorsMapper.deleteStudentsTutorsByTutorId(tutorId);
    }
}
